<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property int $user_id 
 * @property string $title 
 * @property string $slug 
 * @property string $content 
 * @property string $summary 
 * @property string $content_type 
 * @property string $cover_image 
 * @property string $status 
 * @property int $view_count 
 * @property int $like_count 
 * @property int $comment_count 
 * @property int $favorite_count 
 * @property int $reading_time 
 * @property string $published_at 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Article extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'articles';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'view_count' => 'integer', 'like_count' => 'integer', 'comment_count' => 'integer', 'favorite_count' => 'integer', 'reading_time' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
